package com.ympc.pojo;

/**
 * 课程实体类
 */
public class Course {
    private Integer id;
    private String courseName; // 课程名称
    private Integer teacherId; // 教师ID
    private String semester; // 学期（如：2025年秋）
    private String courseType; // 课程类型（如：校内公开、教务开课）
    private String description; // 课程描述
    private Integer classId; // 关联的班级ID（可选）

    public Course() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester;
    }

    public String getCourseType() {
        return courseType;
    }

    public void setCourseType(String courseType) {
        this.courseType = courseType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", courseName='" + courseName + '\'' +
                ", teacherId=" + teacherId +
                ", semester='" + semester + '\'' +
                ", courseType='" + courseType + '\'' +
                ", description='" + description + '\'' +
                ", classId=" + classId +
                '}';
    }
}

